/**
 * 工具类
 * Created by Administrator on 2018/1/11.
 */
const utils = {

  /**
   * 判断是否为空
   * @param obj
   * @returns {boolean}
   */
  isBlank (obj = '') {
    if (obj == null || obj === undefined || obj === '' || obj === {} || obj === []) {
      return true
    }
    return false
  },

  /**
   * 判断是否不为空
   * @param obj
   * @returns {boolean}
   */
  isNotBlank (obj = '') {
    return !utils.isBlank(obj)
  }
}

export default utils
